<?php

namespace app\base\model;

use app\base\model\member\MemberModel;

use app\common\model\CommonModel;



class StaffMemberModel extends CommonModel{

    protected  $name = 'base_staff_member';

    protected  $pk   = 'staff_member_id';



    public function member()

    {

        return $this->hasOne(MemberModel::class,'member_id','member_id');

    }



    public function staff()

    {

        return $this->hasOne(StaffModel::class,'staff_id','staff_id');

    }

}